package com.huoyun.car.model;

import java.util.Comparator;

public class BidPriceComparator implements Comparator<BidCarInfoModel> {

	@Override
	public int compare(BidCarInfoModel o1, BidCarInfoModel o2) 
	{
		try
		{
			Float firstPrice = Float.parseFloat(o1.getBidInfoPrice());
			Float secondPrice = Float.parseFloat(o2.getBidInfoPrice());
			return firstPrice.compareTo(secondPrice);
		}
		catch (Exception e) 
		{
			return 0;
		}
	}

}
